<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        *
        {
            margin: 0;
            padding: 0;
        }
        .sec
        {
            height: 250px;
            width: 4px;
            background-color: red;
            margin: 0 auto;
            /*animation: roll 60s infinite;*/

        }
        .sec-wrapper
        {
            width: 500px;
            height: 500px;
            margin-left: auto;
            margin-right: auto;
            margin-top: 200px;
            animation: roll 60s infinite;
        }
        @keyframes roll
        {
            from
            {
                transform: rotateZ(0);
            }
            to
            {
                transform: rotateZ(360deg);
            }
        }
    </style>
</head>
<body>
    <div class="sec-wrapper">
        <div class="sec"></div>
    </div>
</body>
</html>